(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.MyMessageListingModel = (function(_super) {

    __extends(MyMessageListingModel, _super);

    function MyMessageListingModel() {
      return MyMessageListingModel.__super__.constructor.apply(this, arguments);
    }

    MyMessageListingModel.prototype.defaults = {
      UserId: '',
      SenderId: '',
      Messages: [],
      Size: 10,
      Page: 1,
      Direction: 0,
      Column: "Email",
      Filter: {
        Email: '',
        Login: ''
      }
    };

    MyMessageListingModel.prototype.url = function() {
      var url;
      url = SiteMap.Messages.MessageListing;
      url = url + "?senderId=" + this.attributes.SenderId;
      url = url + "&page=" + this.attributes.Page;
      url = url + "&size=" + this.attributes.Size;
      return url;
    };

    MyMessageListingModel.prototype.parse = function(response) {
      var items;
      items = {};
      items.UserId = response.UserId;
      items.Size = response.Size;
      items.Page = response.Page;
      items.TotalPage = response.TotalPage;
      items.Messages = response.Messages;
      return items;
    };

    return MyMessageListingModel;

  })(Backbone.Model);

}).call(this);
